package com.guodi.map.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @描述：行政区划表
 * @作者: 代鹏刚
 * @日期: 2020-04-07
 */
@Data
@ApiModel(value="行政区划表")
@TableName("map_division")
public class MapDivision implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    private String id;

    @ApiModelProperty(value = "编码")
    private String code;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "上级编码")
    private String parentCode;

    @ApiModelProperty(value = "图层要素信息")
    private String features;

    @ApiModelProperty(value = "行政区划代码字段")
    private String codeField;

    @ApiModelProperty(value = "图层ID")
    private String layerId;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "创建人")
    private String creator;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "修改人")
    private String modifier;

    @ApiModelProperty(value = "修改时间")
    private Date modifyTime;

    @ApiModelProperty(value = "子节点" ,hidden = true)
    @TableField(exist = false)
    private List<MapDivision> children;

    @ApiModelProperty(value = "关联URL",hidden = true)
    @TableField(exist = false)
    private String LayerUrl;

    @ApiModelProperty(value = "关联图层表名",hidden = true)
    @TableField(exist = false)
    private String layerTable;

    @ApiModelProperty(value = "层级",hidden = true)
    @TableField(exist = false)
    private Integer level;

    @ApiModelProperty(value = "type",hidden = true)
    @TableField(exist = false)
    private String type;

    @ApiModelProperty(value = "parent",hidden = true)
    @TableField(exist = false)
    private String parentId;
}
